package core

import (
	"animal/octopus/common"
	"animal/octopus/orm"
)

// ------------------------------------------------------------------------------
//
// ------------------------------------------------------------------------------
func GetTopoRuleList(topoViewID uint) ([]common.TopoRuleInfo, error) {
	return orm.GetTopoRuleList(nil, topoViewID)
}

// ------------------------------------------------------------------------------
//
// ------------------------------------------------------------------------------
func CreateTopoRule(param common.CreateTopoRuleParam) (uint, error) {
	return orm.CreateTopoRule(nil, param)
}

// ------------------------------------------------------------------------------
//
// ------------------------------------------------------------------------------
func DeleteTopoRule(param common.DeleteTopoRuleParam) error {
	return orm.DeleteTopoRule(nil, param)
}
